1.Basketball machine senser <<
Previous Next >> 3.Basketball machine by MTB_Robot
2.Basketball machine Slider
slide file link

當a==10時 會執行向左移動 直到d<=-0.5
d<=-0.5時,會執行a=0,b=10
當b==10時 會執行向右移動 直到d>=0.5
d>=0.5時,會執行a=10,b=0
a,b變數是用來判斷滑塊要向左或向右移動
d是用來判斷座標點
distance是用來給位移量

1.Basketball machine senser <<
Previous Next >> 3.Basketball machine by MTB_Robot